home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / Universal Interfaces / PPCCIncludes / Values.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-13  |  1.4 KB  |  91 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Values.h
  3.  
  4.     Copyright:    © 1984-1993 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef __VALUES__
  13. #define __VALUES__
  14.  
  15. #define BITSPERBYTE 8
  16.  
  17. #define BITS(type) (BITSPERBYTE * (int)sizeof(type))
  18.  
  19. #define HIBITS ((short)(1<<BITS(short)-1))
  20.  
  21. #define HIBITI (1<<BITS(int)-1)
  22.  
  23. #define HIBITL (1L<<BITS(long)-1)
  24.  
  25. #define MAXSHORT ((short)~HIBITS)
  26.  
  27. #define MAXINT (~HIBITI)
  28.  
  29. #define MAXLONG (~HIBITL)
  30.  
  31. #define MAXEXTENDED nextextended(inf(),0.0)
  32.  
  33. #define MAXDOUBLE nextdouble(inf(),0.0)
  34.  
  35. #define MAXFLOAT nextfloat(inf(),0.0)
  36.  
  37. #define MINEXTENDED scalb(XMINEXP-1,1.0)
  38.  
  39. #define MINDOUBLE scalb(DMINEXP-1,1.0)
  40.  
  41. #define MINFLOAT scalb(FMINEXP-1,1.0)
  42.  
  43. #define _IEEE 1
  44.  
  45. #define _XEXPLEN 15
  46.  
  47. #define _DEXPLEN 11
  48.  
  49. #define _FEXPLEN 8
  50.  
  51. #define _HIDDENBIT 1
  52.  
  53. #define _XHIDDENBIT 0
  54.  
  55. #define XMINEXP (-16382)
  56.  
  57. #define DMINEXP (-1021)
  58.  
  59. #define FMINEXP (-125)
  60.  
  61. #define XMAXEXP 16384
  62.  
  63. #define DMAXEXP 1024
  64.  
  65. #define FMAXEXP 128
  66.  
  67. #define _LENBASE 1
  68.  
  69. #define _EXPBASE (1<<_LENBASE)
  70.  
  71. #define XSIGNIF 64
  72.  
  73. #define DSIGNIF 53
  74.  
  75. #define FSIGNIF 24
  76.  
  77. #define XMAXPOWTWO scalb(XSIGNIF-1,1.0)
  78.  
  79. #define DMAXPOWTWO scalb(DSIGNIF-1,1.0)
  80.  
  81. #define FMAXPOWTWO scalb(FSIGNIF-1,1.0)
  82.  
  83. #define LN_MAXDOUBLE log(MAXDOUBLE)
  84.  
  85. #define LN_MINDOUBLE log(MINDOUBLE)
  86.  
  87. #define MAXCOMP (scalb(63,1.0)-1.0)
  88.  
  89. #endif
  90.  
  91.